

// import React, { Component, Suspense } from 'react'
// import { ROUTER } from "../type/router.d"
// import { Switch, Redirect, Route } from "react-router-dom"
// export class RouterView extends Component<ROUTER> {
//     render() {
//         const { routerConfig } = this.props
//         return (
//             <Suspense fallback="路由加载中">
//                 <Switch>
//                     {routerConfig.length&&routerConfig.map((item,index)=>{
//                         return item.redirect?
//                         <Redirect key={index} to={item.redirect}></Redirect>:
//                         <Route key={index} path={item.path} render={(props)=>{
//                             return <item.component {...props} routerConfig={item.children}></item.component>
//                         }}></Route>
//                     })}
//                 </Switch>
//             </Suspense>
//         )
//     }
// }

import React from 'react'

export default function RouterView() {
  return (
    <div>RouterView</div>
  )
}


// export default RouterView
